<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/1/25
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>记账</title>
</head>
<body>
<h1>记账</h1>
<form action="/insert" method="post">
    <p>
        类型：
        <c:forEach items="${types}" var="type">
            <input type="radio" name="typeid" value="${type.id}">${type.name}
        </c:forEach>
    </p>
    <p>标题：<input type="text" name="title"></p>
    <p>
        日期：<input type="text" name="billtime">
        金额：<input type="text" name="price">
    </p>
    <p>
        说明：<textarea cols="40" rows="4" name="billexplain"></textarea>
    </p>
    <input type="submit" value="保存">
    <input type="reset" value="重置">
</form>
</body>
</html>
